package com.ev.k3cloudBusiness.vo;

import com.alibaba.fastjson.annotation.JSONField;
import com.ev.k3cloud.entity.K3CloudBaseNumberMetaEntity;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel("其他出库明细新增vo")
public class K3OthOutStockEntryInsertVo {

    @JSONField(ordinal = 1)
    @ApiModelProperty("物料编码")
    private K3CloudBaseNumberMetaEntity fmaterialId=new K3CloudBaseNumberMetaEntity("");

    @JSONField(ordinal = 5)
    @ApiModelProperty("发货仓库")
    private K3CloudBaseNumberMetaEntity fstockId=new K3CloudBaseNumberMetaEntity("");

    @JSONField(ordinal = 3)
    @ApiModelProperty("实发数量")
    private BigDecimal fqty=new BigDecimal(0);

    @JSONField(ordinal = 8)
    @JsonIgnore
    @ApiModelProperty("库存状态")
    private K3CloudBaseNumberMetaEntity fstockStatusId = new K3CloudBaseNumberMetaEntity("KCZT01_SYS");

    @JSONField(ordinal = 6)
    @JsonIgnore
    @ApiModelProperty("货主类型")
    private String fownerTypeId = "BD_OwnerOrg";

    @JSONField(ordinal = 7)
    @ApiModelProperty("货主")
    private K3CloudBaseNumberMetaEntity fownerId = new K3CloudBaseNumberMetaEntity("");

    @JSONField(ordinal = 9)
    @JsonIgnore
    @ApiModelProperty("保管者类型")
    private String fkeeperTypeId = "BD_KeeperOrg";

    @JSONField(ordinal = 11)
    @ApiModelProperty("保管者")
    private K3CloudBaseNumberMetaEntity fkeeperId= new K3CloudBaseNumberMetaEntity("");

    @JSONField(ordinal = 4)
    @ApiModelProperty("基本单位")
    private K3CloudBaseNumberMetaEntity fbaseUnitId= new K3CloudBaseNumberMetaEntity("");

    @JSONField(ordinal = 2)
    @ApiModelProperty("单位")
    private K3CloudBaseNumberMetaEntity funitID= new K3CloudBaseNumberMetaEntity("");

    @JSONField(ordinal = 10)
    @JsonIgnore
    @ApiModelProperty("参加费用分配")
    private Boolean fdistribution = true;

    @JSONField(ordinal = 12)
    @ApiModelProperty("仓位")
    private K3StockLocVo fstockLocId=new K3StockLocVo();
}
